package lesson17;

public class Zoo {

	public static void main(String[] args) {
		
		Animal animal = new Animal();
		animal.weight = 30;
		System.out.println(animal.weight);
		animal.breathe();
		
		Cat cat = new Cat();
		
		Dog dog = new Dog();

		Tiger tiger = new Tiger();

		System.out.println("Biology name: " + Animal.className); // dostypwa se chrez imeto na klasa [Animal (s glawna bukwa) w tozi sluchai]
		Cat.className = "Shrooms";
		System.out.println("Cat biology name: " + Cat.className); //losha praktika e animal.className (s malka bukwa)
		
		System.out.println("Cat age: " + cat.age); //default constructor-a nasledqwa stoinostite ot default constructora w Animal
		System.out.println("Animal age: " + animal.age);
		
		System.out.println("Cat age: " + cat.age);
		System.out.println("Cat moustrashe: " + cat.catMoustache);
		
		System.out.println("Cat age: " + tiger.age);
		System.out.println("Cat moustrashe: " + tiger.catMoustache);
		
		Zoo zoo = new Zoo();
		System.out.println(zoo.equals(cat));
		System.out.println(zoo.toString()); // = System.out.println(zoo);

	}

}
